package com.minzheng.blog.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 电影
 *
 * @author silencezheng
 * @date 2022/07/29
 * @since 2022-05-18
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "电影")
public class MovieVO {

    /**
     * id
     */
    @ApiModelProperty(name = "id", value = "电影id", dataType = "Integer")
    private Integer id;

    /**
     * 电影分类
     */
    @ApiModelProperty(name = "category", value = "文章分类", dataType = "Integer")
    private String categoryName;

    /**
     * 电影缩略图
     */
    @ApiModelProperty(name = "movieCover", value = "电影缩略图", dataType = "String")
    private String movieCover;

    /**
     * 电影名
     */
    @NotBlank(message = "名字不能为空")
    @ApiModelProperty(name = "name", value = "电影名", required = true, dataType = "String")
    private String name;

    /**
     * 电影简介
     */
    @NotBlank(message = "电影简介不能为空")
    @ApiModelProperty(name = "content", value = "电影简介", required = true, dataType = "String")
    private String content;
    /**
     * 链接
     */
    @NotBlank(message = "电影链接不能为空")
    @ApiModelProperty(name = "url", value = "电影链接", required = true, dataType = "String")
    private String url;
    /**
     * 播放方式
     */
    @NotBlank(message = "播放方式不能为空")
    @ApiModelProperty(name = "mode", value = "播放方式", required = true, dataType = "String")
    private String mode;
    /**
     * 热度
     */
    @ApiModelProperty(name = "url", value = "热度",dataType = "Integer")
    private Integer viewsCount;

}
